<?php
header("content-type:text/html;charset=utf-8");
include("../conn/conn.php");
$id=$_GET['id'];
$sh="1";
$fo="2";
$sql="delete from tb_lyxt where id='$id'";
$result=mysqli_query($link,$sql);
if(mysqli_num_rows($result)>0){
	$rows=mysqli_fetch_assoc($result);
	if($rows['show']=="2"){
		$sql_dj="update tb_lyxt	set state='sh' where id='$id'";
		echo ("<script>alert('审核成功！');window.location.href='plgl.php';</script>");
		}else{
			$sql_dj="update tb_lyxt	set state='fo' where id='$id'";
			echo ("<script>alert('冻结成功！');window.location.href='plgl.php';</script>");
			}
	}else{
		echo ("<script>alert('没有记录！');window.location.href='plgl.php';</script>");
		}
?>